package com.zxx.coolweather._wuguan2;

import com.yanzhenjie.nohttp.rest.Response;

/**
 * @author zxx on 2022/1/12
 */
public interface HttpCallBack<T> {

    /**
     * Server correct response to callback when an HTTP request.
     *
     * @param what     用来标志请求, 当多个请求使用同一个Listener时, 在回调方法中会返回这个what。
     * @param response in response to the results.
     */
    void onSucceed(int what, Response<T> response);

    void onFailed(int what, String url, Object tag, Exception exception, int responseCode, long networkMillis);
}
